import random

salary = 10000
for i in range(1, 21):
    if salary <= 0:
        print(f"工资余额{salary}，没钱了不发了")
        break
    num = random.randint(1, 10)
    if num < 5:
        print(f"员工{i}绩效{num}，低于5不发工资，下一位")
        continue
    else:
        salary -= 1000
        print(f"员工{i}绩效{num}，发1000，工资剩余{salary}")
